#include "myTask.h"
#include "bsp_usart.h"
#include "bsp_can.h"
#include "bsp_adc.h"
#include "cmsis_os.h"
/* USER CODE BEGIN Header_myAdcCheckTask */
/**
* @brief Function implementing the AdcCheckTask thread.
* @param argument: Not used
* @retval None
*/
/* USER CODE END Header_myAdcCheckTask */
void myAdcCheckTask(void const * argument)
{
  /* USER CODE BEGIN myAdcCheckTask */
  /* Infinite loop */
  for(;;)
  {
	  ADC_DMA_BUFFER[0] = Get_Adc(ADC1_PA0);
	  ADC_DMA_BUFFER[1] = Get_Adc(ADC1_PA1);
	  ADC_DMA_BUFFER[2] = Get_Adc(ADC1_PA2);
	  ADC_DMA_BUFFER[3] = Get_Adc(ADC1_PA3);
	  ADC_DMA_BUFFER[4] = Get_Adc(ADC1_PA4);
	  ADC_DMA_BUFFER[5] = Get_Adc(ADC1_PA5);
	  ADC_DMA_BUFFER[6] = Get_Adc(ADC1_PA6);
	  ADC_DMA_BUFFER[7] = Get_Adc(ADC1_PA7);
	  ADC_DMA_BUFFER[8] = Get_Adc(ADC1_PA8);
	  ADC_DMA_BUFFER[9] = Get_Adc(ADC1_PA9);
	  ADC_DMA_BUFFER[10] = Get_Adc(ADC1_PC4);
	  ADC_DMA_BUFFER[10] = Get_Adc(ADC1_PC5);
//	  HAL_GPIO_TogglePin(SYS_LED_GPIO_Port,SYS_LED_Pin);
      osDelay(100);
  }
  /* USER CODE END myAdcCheckTask */
}

/* USER CODE BEGIN Header_myExtiTask */
/**
* @brief Function implementing the ExtiTask thread.
* @param argument: Not used
* @retval None
*/
/* USER CODE END Header_myExtiTask */
void myExtiTask(void const * argument)
{
  /* USER CODE BEGIN myExtiTask */
  /* Infinite loop */
  for(;;)
  {
    osDelay(1);
  }
  /* USER CODE END myExtiTask */
}


